<template>
  <input type="text" v-model.lazy="cityName" />
</template>

<script setup>
import { watch, ref } from "vue";

let cityName = ref("beijing");
watch(cityName, (newVal, oldVal) => {
  console.log(newVal, oldVal);
});
</script>

<style>
</style>
